num = int(input())
cnt = 1
x = 0
while cnt < num:
    x += 1/cnt
    x -= 1/(cnt+2)
    cnt += 2
print(f"{x:0.8}")